package com.yang.article.controller.v1;

import com.yang.apis.article.IArticleClient;
import com.yang.article.service.ApArticleService;
import com.yang.model.article.dtos.ArticleDto;
import com.yang.model.article.pojos.ApArticle;
import com.yang.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Billyang
 * @date: 2024/9/30 23:19
 */
@RestController
public class ArticleClientController implements IArticleClient {

    @Autowired
    private ApArticleService apArticleService;

    @Override
    public ResponseResult saveArticle(@RequestBody ArticleDto dto) {
        return apArticleService.saveArticle(dto);
    }
}
